<template>
  <div id="container">
    <ComInputMap :value.sync="value"></ComInputMap>
  </div>
</template>
 
<script>
import ComInputMap from "./components/com-input-map.vue";

export default {
  name: "Map",
  components: { ComInputMap },
  data() {
    return {
      // 地图坐标地址参数
      value: [
        // 113.10235504165291,
        // 41.03624227495205,
        // "内蒙古自治区乌兰察布市集宁区新体路街道顺达源广告传媒",
      ],
    };
  },
  watch: {
    value: {
      handler: function (newVal) {
        console.log("最新坐标:", newVal);
      },
      deep: true,
    },
  },
  mounted() {},
  methods: {
    initMap() {},
  },
};
</script>
 
<style scoped lang = "less">
#container {
  padding: 0px;
  margin: 0px;
  width: 100%;
  height: 800px;
}
</style>